package com.maimao.model.goods.vo;

import com.maimao.model.goods.Goods;
import com.maimao.model.goods.GoodsDetail;
import com.maimao.model.goods.GoodsSku;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2020/12/27 2:51 下午
 */
@NoArgsConstructor
@AllArgsConstructor
public class GoodsInfo {
    @Valid
    @NotNull(message = "参数非法")
    private Goods goods;

    @Valid
    @NotNull(message = "参数非法")
    private GoodsDetail goodsDetail;

    @Valid
    @NotNull(message = "参数非法")
    private List<GoodsSku> skus;

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public GoodsDetail getGoodsDetail() {
        return goodsDetail;
    }

    public void setGoodsDetail(GoodsDetail goodsDetail) {
        this.goodsDetail = goodsDetail;
    }

    public List<GoodsSku> getSkus() {
        return skus;
    }

    public void setSkus(List<GoodsSku> skus) {
        this.skus = skus;
    }
}
